#ifndef __PACKETINFO_H__
#define __PACKETINFO_H__

#include <string>
#include <list>

class Packetinfo {

struct clause {
    std::string		name;
    std::string		type;
    int			size;
    int			digits;
};

struct table {
    std::string		tablename;
    list<std::string>	pkey;
    list<std::string>	other;
    list<clause>	clause;
};

struct general {
    int			sec_level;
    std::string		ver_packet;
    std::string		ver_system;
    std::string		from;
    std::string		to;
    int			number;
    int			prev;
    list<table>		table
};

int packetinfo(struct packetinfo* info);

public:
    struct general packetinfo;
    Packetinfo();
    ~Packetinfo();
};

#endif /* __PACKETINFO_H__ */
